package com.cyt.cytcrm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyt.cytcrm.entity.Employee;
import com.cyt.cytcrm.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author PIGS
 * @since 2020-03-23
 */
public interface IRoleService extends IService<Role> {
    IPage<Role> selectList(Page<Role> page);

    Role selectByName(String roleName);

    Integer add(Role role,Integer deptId);


    Integer update(Role role,Integer deptId);
}
